package com.deyuanyun.pic.pbf.service.impl;

import com.deyuanyun.pic.pbf.domain.CPSurvey;
import com.deyuanyun.pic.pbf.mapper.CPSurveyMapper;
import com.deyuanyun.pic.pbf.service.CPSurveyService;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CPSurveyServiceImpl implements CPSurveyService {
    @Autowired
    private CPSurveyMapper cPSurveyMapper;

    private static final Logger logger = LoggerFactory.getLogger(CPSurveyServiceImpl.class);

    public CPSurvey selectByPrimaryKey(String id) {
        return this.cPSurveyMapper.selectByPrimaryKey(id);
    }

    public int deleteByPrimaryKey(String id) {
        return this.cPSurveyMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(CPSurvey record) {
        return this.cPSurveyMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(CPSurvey record) {
        return this.cPSurveyMapper.updateByPrimaryKey(record);
    }

    public int insert(CPSurvey record) {
        return this.cPSurveyMapper.insert(record);
    }
}